package com.xzj.springmvc.annotation;

import com.xzj.spring.annotation.AliasFor;
import com.xzj.spring.annotation.Component;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * @ProjectName: SpringDemo
 * @Package: com.xzj.springmvc.annotation
 * @ClassName: Controller
 * @Author: xzj
 * @Description:
 * @Date: 2022/7/14 11:10
 * @Version: 1.0
 */
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.TYPE})
@Component
public @interface Controller {

    @AliasFor(annotation = Component.class)
    String value() default "";

}
